package com.csun.cmny.provider.model.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * 魔盒绑定位置表
 */
@Data
@Table(name = "cn_dmc_csun_mohe_location")
public class DmcCsunMoheLocation {
    /**
     * 设备Id
     */
    @Column(name = "device_id")
    private int deviceId;
    /**
     * 0-自定义, 1-人, 2-床, 3-房间
     */
    @Column(name = "bind_type")
    private int bindType;
    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private int oldmanId;
    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;
    /**
     * 床位Id
     */
    @Column(name = "bed_id")
    private int bedId;
    /**
     * 房间id
     */
    @Column(name = "room_id")
    private int roomId;
    /**
     * 绑定位置
     */
    @Column(name = "location")
    private String location;
    /**
     * 创建人
     */
    @Column(name = "creator")
    private String creator;
    /**
     * 创建人id
     */
    @Column(name = "creator_id")
    private Long creatorId;
    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private Date createdTime;
}
